package com.app.service.impl;

import com.alibaba.fastjson.JSONObject;
import com.app.mapper.JobFollowMapper;
import com.app.mapper.ReportClassMapper;
import com.app.model.*;
import com.app.service.ComRecruitersService;
import com.app.service.CustomerService;
import com.app.service.JobFollowService;
import com.app.service.ReportClassService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @Description:举报分类
 * @Author: N
 * @Date: 2022年11月24日 10点29分
 */
@Service
public class ReportClassServiceImpl implements ReportClassService {

    @Autowired
    ReportClassMapper reportClassMapper;

    @Override
    public List<ReportClassModel> getClassByLevel(Integer level) {
        QueryWrapper<ReportClassModel> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("class_level", level);
        List<ReportClassModel> userList = reportClassMapper.selectList(queryWrapper);
        return userList;
    }

    @Override
    public List<ReportClassModel> getClassByFatherId(Integer FatherId) {
        QueryWrapper<ReportClassModel> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("father_id", FatherId);
        List<ReportClassModel> userList = reportClassMapper.selectList(queryWrapper);
        return userList;
    }
}
